﻿<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" CodeFile="DanhSachHangHoa.aspx.cs" Inherits="Admin_QuanLyHangHoa_DanhSachHangHoa" Title="Danh sách hàng hóa" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td>
            <table width="98%" border="0" cellpadding="0" cellspacing="0" style="border: 1px solid #c0c0c0">                
                <tr>
                    <td>
                         <table id="Table1" width="100%" runat="server" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td class="Title" align="left" style="width: 15%">Tìm kiếm</td>
                                    <td class="Title" align="right" style="cursor: hand;width: 85%">       
                                    </td>
                                </tr>
                           
                                <tr>
                                    <td align="left" class="ListContent" style="width:15%; height:20px">
                                        Nhóm hàng
                                    </td>
                                    <td style="width: 85%" align="left">
                                        &nbsp;<asp:DropDownList CssClass="textbox" ID="DDL_Nhomhang" runat="server">
                                              </asp:DropDownList>
                                    </td>
                                </tr> 
                                <tr>
                                    <td align="left" class="ListContent" style="width:15%; height:20px">
                                        Mã hàng
                                    </td>
                                    <td style="width: 85%" align="left">
                                        &nbsp;<asp:TextBox CssClass="textbox" ID="txtMaHang" runat="server" Width="180px"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="left" class="ListContent" style="width:15%; height:20px">
                                        Tên hàng
                                    </td>
                                    <td style="width: 85%" align="left">
                                        &nbsp;<asp:TextBox CssClass="textbox" ID="txtTenHang" runat="server" Width="180px"></asp:TextBox>
                                    </td>
                                </tr>                                                                                                      
                                <tr><td style="height: 3px" colspan="2"></td></tr>
                                <tr>
                                    <td colspan="2" class="Footer" align="left">
                                        <asp:Button CssClass="button" ID="NVMASearch" Text="Tìm kiếm" runat="server" OnClick="NVMASearch_Click"/>
                                    </td>
                                </tr>                                

                        </table>
                    </td>
                </tr>                
            </table>
        </td>
    </tr>
    <tr><td style="height: 15px"></td></tr>

    <tr>
        <td>
            <table width="98%" border="0" cellpadding="0" cellspacing="0" style="border: 1px solid #c0c0c0">
                <tr>
                    <td class="Title" style="height:22px" align="left">Danh sách hàng hóa</td>
                </tr>
                <tr>
                    <td>
                        <asp:GridView Width="100%" ID="GV_NVList" runat="server" 
                            AutoGenerateColumns="false"  AllowPaging="true" PagerStyle-Font-Underline="true"  PagerStyle-Font-Size="11px" PagerStyle-ForeColor="Gray"
                            onpageindexchanging="GV_NVList_PageIndexChanging" PageSize="10">
                            <Columns>
                                <asp:TemplateField>
                                    <HeaderStyle Height="18px" Width="5%" CssClass="SubTitle" />
                                    <HeaderTemplate>
                                        <asp:Label ID="Stt" runat="server">Stt</asp:Label>
                                    </HeaderTemplate>
                                    <ItemStyle Height="18px" HorizontalAlign="Center" />
                                    <ItemTemplate>
                                        <%#Container.DataItemIndex +1 %>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField>
                                    <HeaderStyle Height="18px" Width="15%" CssClass="SubTitle" />
                                    <HeaderTemplate>
                                       <asp:Label ID="Username" runat="server">Nhóm hàng</asp:Label>
                                    </HeaderTemplate>
                                    <ItemStyle Height="18px" HorizontalAlign="Center" />
                                    <ItemTemplate>
                                            <%#DataBinder.Eval(Container.DataItem, "TenNhomHang")%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField>
                                    <HeaderStyle Height="18px" Width="10%" CssClass="SubTitle" />
                                    <HeaderTemplate>
                                        <asp:Label ID="Group" runat="server">Mã hàng</asp:Label>
                                    </HeaderTemplate>
                                    <ItemStyle Height="18px" HorizontalAlign="Left" />
                                    <ItemTemplate>
                                        &nbsp;<%#DataBinder.Eval(Container.DataItem, "MaHang")%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                 <asp:TemplateField>
                                    <HeaderStyle Height="18px" Width="30%" CssClass="SubTitle" />
                                    <HeaderTemplate>
                                        <asp:Label ID="Group" runat="server">Tên hàng</asp:Label>
                                    </HeaderTemplate>
                                    <ItemStyle Height="18px" HorizontalAlign="Left" />
                                    <ItemTemplate>
                                        &nbsp;<%#DataBinder.Eval(Container.DataItem, "TenHang")%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                 <asp:TemplateField>
                                    <HeaderStyle Height="18px" Width="15%" CssClass="SubTitle" />
                                    <HeaderTemplate>
                                        <asp:Label ID="Group" runat="server">Mô tả</asp:Label>
                                    </HeaderTemplate>
                                    <ItemStyle Height="18px" HorizontalAlign="Left" />
                                    <ItemTemplate>
                                        &nbsp;<%#DataBinder.Eval(Container.DataItem, "Mota")%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                 <asp:TemplateField>
                                    <HeaderStyle Height="18px" Width="10%" CssClass="SubTitle" />
                                    <HeaderTemplate>
                                        <asp:Label ID="Group" runat="server">Ảnh</asp:Label>
                                    </HeaderTemplate>
                                    <ItemStyle Height="18px" HorizontalAlign="Left" />
                                    <ItemTemplate>
                                        &nbsp;<%#DataBinder.Eval(Container.DataItem, "Images")%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                 <asp:TemplateField>
                                    <HeaderStyle Height="18px" Width="20%" CssClass="SubTitle" />
                                    <HeaderTemplate>
                                        <asp:Label ID="Group" runat="server">Đơn giá</asp:Label>
                                    </HeaderTemplate>
                                    <ItemStyle Height="18px" HorizontalAlign="Left" />
                                    <ItemTemplate>
                                        &nbsp;<%# DataBinder.Eval(Container.DataItem, "dongia")%>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                 <asp:TemplateField>
                                        <HeaderStyle Width="2%" CssClass="SubTitle" />
                                        <HeaderTemplate>
                                            <asp:Label ID="l34" runat="server">Sửa</asp:Label>
                                        </HeaderTemplate>
                                        <ItemStyle CssClass="ListContent" Height="20px" />
                                        <ItemTemplate>
                                            <a class="leftMenuAdmin" href="SuaHangHoa.aspx?maHH=<%#DataBinder.Eval(Container.DataItem,"MaHang")%>">
                                                <img src="../../Images/Images-Admin/edit_u.gif" alt=" Sửa " style="border: 0px;" />
                                            </a>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                <asp:TemplateField>
                                    <HeaderStyle Width="5%" CssClass="SubTitle" Height="18px" />
                                    <HeaderTemplate>
                                        <input onclick="JavaScript:checkDeleteAll(this.form);" type="checkbox" name="chb_DeleteAll" title="Chọn tất">
                                    </HeaderTemplate>
                                    <ItemStyle CssClass="ListContent" Height="20px" HorizontalAlign="Center" />
                                    <ItemTemplate>
                                        <input type="checkbox" value="delete" name="chbDelete<%#DataBinder.Eval(Container.DataItem,"MaHang")%>">
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                        </asp:GridView>
                    </td>
                </tr>
                <tr>
                    <td class="Title" style="height: 20" align="left">
                        <asp:Button CssClass="button" ID="HangHoa_AddNew" runat="server" 
                            Text="Thêm mới" onclick="HangHoa_AddNew_Click" />
                        <asp:Button CssClass="button" ID="HangHoa_Delete" runat="server" Text="Xóa" 
                            OnClientClick="return checkDelete(this.form)" onclick="HangHoa_Delete_Click" />
                        <asp:Button ID="display" runat="server" CssClass="button" 
                            onclick="display_Click" Text="Display All" Width="92px" />
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
</asp:Content>

